home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
exploer
/
frmfilep.frm
(
.txt
)
next >
Wrap
Visual Basic Form
|
1999-08-25
|
7KB
|
229 lines
VERSION 5.00
Begin VB.Form frmFileProp
Caption = "File Property Page"
ClientHeight = 6975
ClientLeft = 60
ClientTop = 345
ClientWidth = 5775
Icon = "frmFileProp.frx":0000
LinkTopic = "Form1"
ScaleHeight = 6975
ScaleWidth = 5775
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton cmdPropCancel
Caption = "&Cancel"
Height = 375
Left = 240
TabIndex = 6
Top = 6480
Width = 1215
End
Begin VB.CommandButton cmdPropApp
Caption = "&Apply"
Height = 375
Left = 4440
TabIndex = 5
Top = 6480
Width = 1215
End
Begin VB.CommandButton cmdPropOk
Caption = "&OK"
Height = 375
Left = 3240
TabIndex = 4
Top = 6480
Width = 1215
End
Begin VB.Frame framFprop
Caption = "General Info"
Height = 1575
Left = 240
TabIndex = 3
Top = 2280
Width = 5295
Begin VB.Label lblType1
AutoSize = -1 'True
Height = 195
Left = 1080
TabIndex = 12
Top = 720
Width = 45
End
Begin VB.Label lblType
Caption = "Type : "
Height = 255
Left = 240
TabIndex = 11
Top = 720
Width = 735
End
Begin VB.Label lblSize1
AutoSize = -1 'True
Height = 195
Left = 1080
TabIndex = 10
Top = 1200
Width = 45
End
Begin VB.Label lblSize
Caption = "Size :"
Height = 255
Left = 240
TabIndex = 9
Top = 1200
Width = 735
End
Begin VB.Label lblName1
AutoSize = -1 'True
Height = 195
Left = 1080
TabIndex = 8
Top = 240
Width = 45
End
Begin VB.Label lblName
Caption = "Name :"
Height = 255
Left = 240
TabIndex = 7
Top = 240
Width = 735
End
End
Begin VB.Frame framPropFDate
Caption = "File Date && Attribute"
Height = 1815
Left = 240
TabIndex = 2
Top = 3960
Width = 5295
Begin VB.CheckBox chkHidden
Caption = "Hidden"
Height = 255
Left = 4080
TabIndex = 23
Top = 240
Width = 855
End
Begin VB.CheckBox chkArchive
Caption = "Archive"
Height = 255
Left = 4080
TabIndex = 22
Top = 600
Width = 855
End
Begin VB.CheckBox chkReadOnly
Caption = "ReadOnly"
Height = 255
Left = 4080
TabIndex = 21
Top = 960
Width = 1095
End
Begin VB.CheckBox chkSystem
Caption = "System"
Enabled = 0 'False
Height = 255
Left = 4080
TabIndex = 20
Top = 1320
Width = 855
End
Begin VB.Label lblLastmod1
AutoSize = -1 'True
Height = 195
Left = 1560
TabIndex = 18
Top = 1320
Width = 45
End
Begin VB.Label lblLastacc1
AutoSize = -1 'True
Height = 195
Left = 1560
TabIndex = 17
Top = 840
Width = 45
End
Begin VB.Label lbldCreate1
AutoSize = -1 'True
Height = 195
Left = 1080
TabIndex = 16
Top = 360
Width = 45
End
Begin VB.Label lblLastmod
Caption = "Last Modified :"
Height = 255
Left = 240
TabIndex = 15
Top = 1320
Width = 1095
End
Begin VB.Label lblLastacc
Caption = "Last Accessed :"
Height = 255
Left = 240
TabIndex = 14
Top = 840
Width = 1215
End
Begin VB.Label lbldCreate
Caption = "Creation :"
Height = 255
Left = 240
TabIndex = 13
Top = 360
Width = 735
End
End
Begin VB.Frame framPropfname
Caption = "File Name"
Height = 1695
Left = 240
TabIndex = 0
Top = 360
Width = 5295
Begin VB.PictureBox pctPropf
BackColor = &H8000000A&
BorderStyle = 0 'None
Height = 495
Left = 240
ScaleHeight = 495
ScaleWidth = 615
TabIndex = 1
Top = 360
Width = 615
End
Begin VB.Label lblFPath
AutoSize = -1 'True
Height = 195
Left = 2040
TabIndex = 19
Top = 360
Width = 45
End
End
Attribute VB_Name = "frmFileProp"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdPropApp_Click()
Dim fs, f, s, datec
On Error Resume Next
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(filespec)
If frmFileProp.chkArchive = 1 Then f.Attributes = f.Attributes + 32
If frmFileProp.chkHidden = 1 Then f.Attributes = f.Attributes + 2
If frmFileProp.chkReadOnly = 1 Then f.Attributes = f.Attributes + 1
End Sub
Private Sub cmdPropCancel_Click()
frmFileProp.Hide
End Sub
Private Sub Label2_Click()
End Sub